import {request} from '../request'
export function requestRolesData(){
    return request({
        url: 'roles',
        method: 'get'
    })
}


export function requestDeleteRolesRight(params){
    return request({
        ...params,
        method: 'delete'
    })
}
//获取树形控件数据的网络请求
export function requestRolesTreeData(){
    return request({
        url:'rights/tree',
        method: 'get'
    })
}
//角色授权的网络请求
export function requestRolesRight(params){
    return request({
        ...params,
        method: 'post'
    })
}


